<?php

class Test
{
    /**
     * @var object Zend DB Adapter
     */
    private $_db;
    /**
     * @var string
     */
   
    public function __construct()
    {
			$this->_db = Zend_Registry::get('db');
    }
    
    public function getCityList($country_id)
    {
    	$city_arr = array();
		
		if($country_id == 1)
		{
			$city_arr = array('1'=>'Colombo','2'=>'Kalutara','3'=>'Anuradhapura');
		} else if($country_id == 2) { 
			$city_arr = array('1'=>'City1','2'=>'city2');
		}
		
		echo json_encode($city_arr);
		
	}

}

